package com.fz.us.oa.core.entity.com;

import com.fz.us.admin.company.entity.CompanyEntity;
import com.fz.us.admin.company.entity.User;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Created by dzw on 2017/12/14.
 * 发起审批页面
 */
@Entity
@Table(name="sys_startExam")
public class StartExam extends CompanyEntity {
    private static final long serialVersionUID = -1105489003095062635L;

    /**
     * 对应的用户
     */
    private User user;
    /**
     * 所属模块
     */
    private String moduleName;
    /**
     * 表单名
     */
    private String formName;
    /**
     * 表单key
     */
    private String formKey;

    @ManyToOne(fetch = FetchType.LAZY)
    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getModuleName() {
        return moduleName;
    }

    public void setModuleName(String moduleName) {
        this.moduleName = moduleName;
    }

    public String getFormName() {
        return formName;
    }

    public void setFormName(String formName) {
        this.formName = formName;
    }

    public String getFormKey() {
        return formKey;
    }

    public void setFormKey(String formKey) {
        this.formKey = formKey;
    }
}
